﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddProduct.ascx.cs" Inherits="UserControl_AddProduct" %>

   <table>
    <tr>
        <td>Product name</td>
        <td><asp:TextBox runat="server" ID="txtName" CssClass="required" minlength="6"></asp:TextBox></td>
    </tr>
    <tr>
        <td>Price</td>
        <td><asp:TextBox runat="server" ID="txtPrice" CssClass="required number"></asp:TextBox></td>
    </tr>
    <tr>
        <td>Quantity</td>
        <td><asp:TextBox runat="server" ID="txtQuantity" CssClass="required number" ></asp:TextBox></td>
    </tr>
    <tr>
        <td>Origin</td>
        <td><asp:TextBox runat="server" ID="txtOrigin" CssClass="required"/></td>
    </tr>
    <tr>
        <td>Guarantee period</td>
        <td><asp:TextBox runat="server" ID="txtGuaranteePeriod" CssClass="required"/></td>
    </tr>
    <tr>
        <td>Category</td>
        <td><asp:DropDownList runat="server" ID="ddlcat"/></td>
    </tr>
    <tr>
        <td>Image</td>
        <td><asp:FileUpload runat="server" ID="upload" EnableViewState="True" /></td>
    </tr>
    <tr>
        <td><asp:Label runat="server" ID="msg" CssClass="error"></asp:Label></td>
    </tr>
    <tr>
        <td><asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click"/></td>
        <td></td>
    </tr>
</table>
